import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueAMap  from 'vue-amap'
import axios from 'axios'
Vue.prototype.$axios = axios;


Vue.config.productionTip = false
Vue.use(ElementUI);

new Vue({
  router,
  render: h => h(App),
  axios,
}).$mount('#app')

//初始化地图组件
Vue.use(VueAMap );
VueAMap .initAMapApiLoader({
  key: 'c72e3a9cece8bba3941d2bff147eea32',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor','AMap.Geocoder']// 插件集合
})


